//
//  UIView+XYFrame.h
//  XinYiHeZi
//
//  Created by 谢某某 on 16/4/15.
//  Copyright © 2016年 2期. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (XYFrame)

@property (nonatomic) CGFloat x;            ///-->  frame.origin.x.
@property (nonatomic) CGFloat y;            ///-->  frame.origin.y
@property (nonatomic) CGFloat maxX;         ///-->  frame.origin.x + frame.size.width
@property (nonatomic) CGFloat maxY;         ///-->  frame.origin.y + frame.size.height
@property (nonatomic) CGFloat width;        ///-->  frame.size.width.
@property (nonatomic) CGFloat height;       ///-->  frame.size.height.
@property (nonatomic) CGFloat centerX;      ///-->  center.x
@property (nonatomic) CGFloat centerY;      ///-->  center.y
@property (nonatomic) CGPoint origin;       ///-->  frame.origin.
@property (nonatomic) CGSize  size;         ///-->  frame.size.

@end
